<%@LANGUAGE="VBSCRIPT" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Edit FileName</title>
<link href="UniversalStyleSheet.css" rel="stylesheet" type="text/css" />
<script type="text/vbscript">
function OK_click()
	window.opener.document.ExcelForm.FileNameFormat.value=document.getElementById("FileNameFormat").value
	window.close()
end function

function select_click()
	set fn=document.getElementById("FileNameFormat")
	set tl=document.getElementById("TagList")
	if tl.selectedIndex<>-1 then
		fn.value=fn.value & tl.options(tl.selectedIndex).value
	end if
end function
</script>
</head>

<body>
<table width="500" border="0" cellpadding="0" cellspacing="1" bgcolor="#009900">
  <tr>
    <td width="164" bgcolor="#FFFFFF" class="TableTitles">Dynamic Content Options:
      <select name="TagList" id="TagList"size="5" style="background-color:#FFFF99" >
        <option value="&lt;start_date&gt;">&lt;start_date&gt;</option>
        <option value="&lt;end_date&gt;">&lt;end_date&gt;</option>
        <option value="&lt;ticket_count&gt;">&lt;ticket_count&gt;</option>
      </select>
    <br>
    <input name="BtnSelect" type="button" class="buttons" id="BtnSelect" onClick="select_click()" value="Select"></td>
    <td width="333" bgcolor="#FFFFFF" class="TableTitles"><span class="ResultsAddress">Type the format in which you want the Excel report's filename to appear.  Choose from the tags to the left to insert dynamic content into the filename format. (i.e.: choosing &lt;start_date&gt; will insert into the reports filename the starting date of the date range you choose for your report, etc.)
    Click OK when you are done.<br />
    <br />
</span>
      <input name="FileNameFormat" type="text" id="FileNameFormat" size="50" value="<%= request.QueryString("filename") %>" style="background-color:#FFFF99"/></td>
  </tr>
  <tr>
    <td colspan="2" align="right" bgcolor="#FFFFFF"><input name="BtnOK" type="button" class="buttons" id="BtnOK" onClick="OK_click()" value="   OK   "/></td>
  </tr>
</table>
</body>
</html>
